<?php
if(!defined('IN_MANU')){ die('[ERROR] You cannot load this page directly !!!'); }
/* @author tubaduc <tubaduc@gmail.com> 
 * @copyright (c) Pyco24
 * @since 26.07.11
 * @version 2.0
 * */
class LogoutController extends BaseController {
	public function get(){
		return $this->registry;
	}
	/* @author tubaduc
	 * @input none
	 * @output none
	 * */
    public function index($user = null)
    {
    	/*if(isset($_SESSION['_fbid'])){
			unset($_SESSION['_fbid']);
		}*/
		$this->registry->db->get('userManager')->logout();
			
	    header("Location: login");
    }
}
?>